package com.zjw.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zjw.domain.dto.EditPasswordDto;
import com.zjw.domain.dto.EditUserDto;
import com.zjw.domain.dto.LoginRegisterUserDto;
import com.zjw.domain.entity.User;
import com.zjw.domain.vo.ResponseResult;

/**
 * 用户信息表(User)表服务接口
 *
 * @author lkzy
 * @since 2023-12-29 23:49:31
 */
public interface UserService extends IService<User> {
    ResponseResult login(String username, String password);

    ResponseResult register(LoginRegisterUserDto user);

    ResponseResult getUsernameAvatar(Long jwtId);

    ResponseResult getUserInfo(Long jwtId);

    ResponseResult editUser(Long jwtId, EditUserDto editUserDto);

    ResponseResult editPassword(Long jwtId, EditPasswordDto editPasswordDto);

    void updateAvatar(Long jwtId, String resPath);

    String getUserNameById(Long createBy);

    String getUserAvatarById(Long temp);
}

